Blob Storage (1 / 24): Which of the following methods is the most optimal way to copy a blob from one container to another in Azure Blob Storage?
Answer:
await targetBlob.StartCopyFromUriAsync(sourceBlob.Uri);
await sourceBlob.DownloadToAsync(localStream); await targetBlob.UploadAsync(localStream); is inefficient because it requires downloading the blob to local storage and then uploading it, consuming more time and resources.